
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>${(u.name)!""}的主页 - 熊猫知识库</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="${(u.name)!""}的主页,甜甜圈,知识库,问答系统">
  <meta name="description" content="${(u.name)!""}的主页,甜甜圈,知识库,问答系统">
  <#include "/common/header.html">

<div class="fly-home" style="background-image: url();">
	<img src="<#if user.avatar?if_exists>${(user.avatar)!""}<#else>http://img.kb.itttq.com/avatar/default.png</#if>" alt="${(u.name)!""}" title="${(u.name)!""}">
  <h1>${(u.name)!""}</h1>
  <p class="fly-home-info">
    <i class="iconfont icon-shijian"></i><span>${(u.createTime)?string('yyyy-MM-dd')} 加入</span>
  </p>
</div>

<div class="main fly-home-main">
  <div class="layui-inline fly-home-jie">
    <div class="fly-panel">
      <h3 class="fly-panel-title">${(u.name)!""} 最近发布的主题</h3>
        <#if topics?if_exists && topics?size gt 0>
      <ul class="jie-row">
      	<#list topics as item>
        <li>
          <a href="/topic/detail/${(item.id)!0}.html" class="jie-title">${(item.title)!""}</a>
          <i>${(item.updateTime)?string('yyyy-MM-dd hh:mm')}</i>
          <em>${(item.numberRead)!0}阅/${(item.numberReply)!0}答</em>
        </li>
        </#list>
      </ul>
      <#else>
      <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">暂时还没有发布任何主题</i></div>
      </#if>
    </div>
  </div>
  
  <div class="layui-inline fly-home-da">
    <div class="fly-panel">
      <h3 class="fly-panel-title">${(u.name)!""} 最近的回答</h3>
      	<#if replies?if_exists && replies?size gt 0>
      <ul class="home-jieda">
      	<#list replies as item>
        <li>
          <p>
          <span>${(item.updateTime)?string('yyyy-MM-dd hh:mm')}</span>
          在<a href="/topic/detail/${(item.topicId)!0}.html" target="_blank">${(item.topicTitle)!""}</a>中回复：
          </p>
          <div class="home-dacontent">${(item.content)!""}</div>
        </li>
        </#list>
      </ul>
        <#else>
      <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>还没有任何回复！</span></div>
      </#if>
    </div>
  </div>
</div>

<#assign jsFilename="index">
<#include "/common/footer.html">
</body>
</html>